<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡效果t</title>
    <style>
        .div1{
            width: 100px;
            height: 100px;
            background-color: #56a5f1;
            position: relative;
            top: 0;
            left: 0;
            transition: 1s 1s all;
        }
        .div1:hover{
            width: 150px;
            height: 150px;
            background-color: green;
            position: relative;
            top: 50px;
            left: 50px;
        }
    </style>
</head>
<body>
    <div class="div1">
    </div>
</body>
</html>